package com.sebastian.studies.ch10_MyPoint3D;

public class MyPointMain {

	public static void main(String[] args) {

		MyPoint point1 = new MyPoint(-2, -3);
		MyPoint point2 = new MyPoint(-4, 4);

		MyPoint3D point3 = new MyPoint3D(-4, 1, 7);
		MyPoint3D point4 = new MyPoint3D(2, 19, 80);

		System.out.println("Distance is: " + point2.distance(point1, point2));
		System.out.println("Distance 3d is: " + point3.distance(point3, point4));

	}

}
